package task2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-06-14
 * Time:14:19
 */
public class Dog {
    private double height;
    private double weight;

    public Dog(double height, double weight) {
        this.height = height;
        this.weight = weight;
    }
    public void showMessage(){
        System.out.println("身高："+this.height+"cm"+";体重："+this.weight+"kg");
    }
}
